package v2.chapter8.set;

import java.util.*;
import java.util.logging.*;

public class SetTest {

	public static void main(String[] args) {
		Logger.getLogger("v2.chapter8.set").setLevel(Level.FINEST);
		Handler handler = new ConsoleHandler();
		handler.setLevel(Level.FINEST);
		Logger.getLogger("v2.chapter8.set").addHandler(handler);

		Set<Item> parts = new HashSet<>();
		parts.add(new Item("Toaster", 1279));
		parts.add(new Item("Microwave", 4104));
		parts.add(new Item("Toaster", 1279));
		System.out.println(parts);
	}

}
